package top.tagao.study03_Map;

import java.util.Hashtable;

/**
 * @author fu-xiao-liu
 * @Date 2022/4/16 21:37
 */
public class study_04_Hashtable {
    public static void main(String[] args) {
        Hashtable hashtable = new Hashtable();

        for (int i = 0; i < 100; i++) {
            hashtable.put(new B(),11);
        }
        hashtable.put(1,11);

        hashtable.put(2,11);
        hashtable.put(3,11);
        hashtable.put(4,11);
        hashtable.put(5,11);
        hashtable.put(6,11);
        hashtable.put(7,11);
        hashtable.put(8,11);
        hashtable.put(9,11);
    }
}

class B{
    int i = 1;
    public B() {
        i = 10;
    }




    @Override
    public int hashCode() {
        return 2;
    }
}
